#include <stdio.h>
#include <stdlib.h>
#define ARGS_CHECK(argc, num)                 \
    {                                         \
        if (argc != num)                      \
        {                                     \
            fprintf(stderr, "args error!\n"); \
            return -1;                        \
        }                                     \
    }
#define ERROR_CHECK(ret, num, msg) \
    {                              \
        if (ret == num)            \
        {                          \
            perror(msg);           \
            exit(1);               \
        }                          \
    }
#define MIN(lhs, rhs)                 \
    {                                 \
        printf("%d\n", lhs > rhs ? rhs : lhs); \
    }
void jude(){
    int a = 0x12345678;
    char b = (char)a;
    printf("%x\n",b);
}
void tran(char *p){
    while (*p)
    {
        if (*p >= 'a' && *p <= 'z')
        {
            *p = *p -32;
            p++;
        }else if(*p >= 'A' && *p <= 'Z'){
            *p = *p+32;
            p++;
        }else{
            p++;
        }
        
    }
    
}

union Un{
	short s[7];
	double n1;
    double n;
};

int main(int argc, char *argv[])
{
    int a = 4;
    int b = 5;
    MIN(a,b);
    jude();
    // unsigned char  k =50;
    // while (k < 256)
    // {
    //     k++;
    // }

    char p[32] = {"AAAbbb"};
    tran(p);
    puts(p);
    	printf("%d\n",sizeof(union Un));

    return 0;
}
